from turtle import forward
import torch
import torch.nn as nn
import torch.nn.functional as F

class TestModule(nn.Module):
    def __init__(self) -> None:
        super(TestModule,self).__init__()
        self.model = nn.Sequential(
            nn.Conv2d(3,32,5,1,2),
            nn.MaxPool2d(2),
            nn.Conv2d(32,32,5,1,2),
            nn.MaxPool2d(2),
            nn.Conv2d(32,64,5,1,2),
            nn.MaxPool2d(2),
            nn.Flatten(1),
            nn.Linear(64*4*4,64),
            nn.ReLU(inplace=True),
            nn.Linear(64,10)
        )
    
    def forward(self,x):
        x = self.model(x)
        return x

if __name__ == '__main__':
    test = TestModule()
    input = torch.ones((64,3,32,32))
    output = test(input)
    print(output.shape)
    